package com.an;

public class HomeWork {
    public static void main(String[] args) {
        Manager manager = new Manager("李白",10086,5000,2000);
        manager.work();
        Employworker employworker = new Employworker("小二",90932,3000);
        employworker.work();

    }
}

abstract class Employee{
    public String name;
    public int id;
    public double salary;

    public abstract void work();

    public Employee(String name, int id, double salary) {
        this.name = name;
        this.id = id;
        this.salary = salary;
    }
}

class Manager extends Employee{
    public double bouns;

    public Manager(String name, int id, double salary, double bouns) {
        super(name, id, salary);
        this.bouns = bouns;
    }
    public void work(){
        System.out.println("经理"+name+"工作中");
    }
}

class  Employworker extends Employee{
    public Employworker(String name, int id, double salary) {
        super(name, id, salary);
    }
    public void work(){
        System.out.println(" 工人"+name+"工作中");
    }
}
